package com.toutoushidao.ssm.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.toutoushidao.ssm.util.CustomDateSerializer;

import java.util.Date;


/**
 * 用户
 * @author laodun
 *
 */
public class Score {
    private Long userId;
    private Integer mode;
    private Long score;
    private Long attack;
    private Long length;

    @JsonSerialize(using = CustomDateSerializer.class)
    private Date beginTime;
    @JsonSerialize(using = CustomDateSerializer.class)
    private Date endTime;

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getAttack() {
        return attack;
    }

    public void setAttack(Long attack) {
        this.attack = attack;
    }

    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }


    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Score{" +
                "userId=" + userId +
                ", mode=" + mode +
                ", score=" + score +
                ", attack=" + attack +
                ", length=" + length +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                '}';
    }
}
